﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MudEngine.Parsing.AST
{
    public class IfElseExpression : Expression
    {
        public Expression Condition { get; private set; }
        public Statement TrueStatement { get; private set; }
		public Statement FalseStatement { get; private set; }

        public IfElseExpression(Expression condition, Statement trueStatement, Statement falseStatement)
        {
			this.Condition = condition;
			this.TrueStatement = trueStatement;
			this.FalseStatement = falseStatement;
        }

        public override void AcceptVisitor<C>(IAstNodeVisitor<C> visitor, C ctx)
        {
            visitor.VisitIfElseExpression(this, ctx);
        }
    }
}
